<?php
/**
 * Created by PhpStorm.
 * User: Cailusen
 * Date: 2018/3/6
 * Time: 11:24
 */

use Biz\service\Goods;

/**
 * @deprecated
 */
class DetailAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;
    const VIDEO_PYAY = 'a';
    const VIDEO_NOT_PLAY = 'b';

    public function main()
    {
        $goodsId = $this->getRequest()->getQuery('goods_id', 0);
        $SpuDetail = Goods::goods($goodsId, Goods::FIELDS_GROUP_ONLY_DETAIL);
        $this->setSuccess($SpuDetail);
    }
}
